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 Registry Key Values on Windows 7
Access other cell data on current row in an Excel Function
Populating Combo Values
Find Duplicate values
Which to choose Standard & Premium CALs
SQL 2008 time(7) data type and Classic ASP code
On Error Resume Next
right click on item ----> "Send to" ---> "New Folder" (placed within that folder)
Proxy blocking sites on IE7 (intermittantly) but not IE6...
GPF in module MSARN200.EXE