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
Group statement
Dialog Box to ask questions to get new users to identify their pathway to various files being used in macro program
2008 TS Web Access: Expiring Password Reminder?
how to paste a bitmap on a button
Recurring appointment creator no longer exists - how can I change the owner?
Change a SQL Service account
Installing PFBackup under Windows 7
Cannot use Microsoft Word to edit messages in Outlook 2003
Owa acces fails
CTreeCtrl in MFC