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
How to populate a textbox from sqldb storedprocedure
I am getting a type mismatch on this Macro. Need help updating it.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
Safe Shutdown of Windows 2008 Server connected to APC UPS
Add preset percentile counts to SQL SP
Can I Save Intel Graphics Media Accelerator Driver schemes?
Print raw data to the printer:
Adding new button to windows taskbar
Navigation buttons in Access
Disabling Only Checkboxes in Checkboxlist Control