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
Input paramters for an Excel VBA function
SQL syntax question -- exclude NULL record
Block MSN with ISA 2006
Excel Exception when trying to display page
One Chart Per Surgeon in Report Builder 2.0?
Open a recordset using DAO 3.6 in Access 2003
Remote Desktop not working...
Interfaces and Data Provider
Get Buying Cost From Current Stock
Remote Desktop Urgent