Query to display first 3 characters

KenshiroUK

Registered User.
Local time
Today, 21:54
Joined
Oct 15, 2012
Messages
160
Hi all I have an inventory table with a column of SKUs, I wish to create a simple select query that takes the first 3 characters of the sku and displays it.

any idea how?
 
Left, is a function in VBA that takes in a String value and produces an Outpu based on the length given..
Example:
Code:
? Left("Paul", 3)
 Pau
? Left("32A Bank Street", 3)
32A
The code will be something along the lines of..
Code:
SELECT Left([SKU_FieldName], 3) AS FirstThree FROM theTableName;
 

Users who are viewing this thread

Back
Top Bottom