Structuring Database for Accounting

Structuring Database for Accounting · CBSE / NCERT · Page 42

  • 1 min read
This is a small part of a chapterBooks of Prime Entry: notes, questions and quiz

Full lesson

using * and range specification within rectangular brackets. For Example: (14) To make a list of accounts pertaining to the assets of the company, given that each of the assets account code begins with “4”, following query need be executed: ( Model-I and Model-II ) Code, Name accounts Code like “4*” (15) To make a list of employees whose names start from a to k, following query need be executed : ( Model-I and Model-II ) Fname & “ “ & Minit & “ “ & Lname As ‘Name of Employee’ Employees Fname like “[a-e]*” VI. Another comparison operator used in SQL is BETWEEN ....AND .... operator.

This operator facilitates numeric range tests for selection of tuples. For Example: (16) To retrieve vouchers with amount ranging between 5,000 and 10,000, following query need be formulated. ( Model-I ) Vno, Amount Vouchers Amount BETWEEN 5000 AND 10000 ; (Model-II) Vno, Amount Vouchers AS V, Details AS D WHERE . V.vno = D.vno AND Amount BETWEEN 5,000 AND 10,000; VII.

Another feature of SQL permits the use of standard arithmetic operators, which can be directly applied to numeric values appearing in a query

Still stuck on this lesson?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →