Microsoft
Software
Hardware
Network
Question : SQL Query - Syntax ( SQL 2005 / 2008 )
I have a Table Name - Medications
We have MedicationName - Column
I need to perform -
Select MedicationName from Medications
But " MedicationName " has values - [WORD1 WORD2 WORD3].
I need to pick only WORD1. I need to ignore all characters after space
Answer : SQL Query - Syntax ( SQL 2005 / 2008 )
SELECT LEFT(MedicationName, CHARINDEX(' ', MedicationName + ' ') - 1) AS FirstWord
FROM Medications
Random Solutions
Read/Write textbox of another application
SCCM Remote Tools: Now it works... now it doesn't
Cannot Create or Extend Web Application in Central Administrator. Receive Error: Access Denied
Silverlight Runtime not loading XAP from Integrated Authentication
Receiving error when submitting data to SQL Server through asp.net vb
Check if cursor is empty
Error opening excel files: "Windows cannot find 'C:\Users\Ryan\Desktop\xxx<wbr />xexcel file namexxx'.
WSUS Running
Progress meter on an append query
Load analysis services data into an Access table