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
ODBC--update on a linked table '<TABLE NAME>' failed.
Using GetDate function to ruturn results
How to hyperlink a database of 1000's of Fedex tracking numbers to their own tracking Fedex webpage for beginner?
Windows cardspace has stoppped working
MS access VB string not updating with fields from search form
How to open website (hosted on Win Server 2008, IIS) in Microsoft Frontpage 2000?
How to insert semicolon next to my values in excel column
To covert an access report with pictures to any editable document format retaining all the graphics and other formatting settings
SQL Select Distinct Results (Complex)
Scan and update ...