Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
161 views
in Accounting System Using Database Management System by (15.3k points)

With the help of an example, briefly state the meaning of parameter queries.

Please log in or register to answer this question.

1 Answer

0 votes
by (15.9k points)

A parameter Query is a query that asks you for one or more pieces of information before displaying the data sheet. A parameter query prompts the user to enter Parameters, or criteria through an input box, for selecting a set of records.

A parameter query is useful when there is a need to repeat the same query with different criteria. The criteria, is not constant as in the case of the simple query. While extracting the transactions to prepare ledger accounts, the same set of queries need to be executed for different account codes. Consider the following SQL statement.

PARAMETERS Account Name Text (255)
SELECT Name
FROM Accounts
WHERE Code = Account No

In the above query, the PARAMETERS clause is meant to declare the variable Account No. This SQL statement, when executed, prompts the user to provide the value of Account No.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

...