top of page

Calculations in SQLiteStudio


To create a new field in a SQLtable, when using SQLiteStudio, you enter code in this fashion:

SELECT * FROM PRODUCT;

SELECT

PRODUCT_ID,

DESCRIPTION,

PRICE,

PRICE * 1.07 AS TAXED_PRICE

FROM PRODUCT;

So the first line selects data from the table named, 'PRODUCT'. Then we select three three individual fields, entering the command 'SELECT' on one line, and then each field that you want to display on three separate line.

The sixth line is used to calculate the value for a new field. The code is completed with a another reference to the source table followed by a semi-colon. When running the code you need to click on the play button, or press F9 in SQLiteStudio to execute the query


Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page