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
Inserting null value using currentproject.connection.<wbr />execute
Error Code 429
How do I add "domain users" to local administrator group
Runtime error 490 and followhyperlink
How to extract table field list using query
Populate lookup field with data from parent site list
round() method in MFC
How to set scroll position of a datalist inside a div tag using javascript?
Pause sub, open form, continue sub to update
Regex.Replace only match entire word instead of part of a word