Q1 Write A Menu Driven Program To Implement The Following in Binary File Emp - Dat'
Q1 Write A Menu Driven Program To Implement The Following in Binary File Emp - Dat'
Q1 Write A Menu Driven Program To Implement The Following in Binary File Emp - Dat'
dat’ :
1. WriteRec() function to write the Employee Records (id, name, salary) in a binary file name
“Emp.dat”
2. ReadRec_Salary() function to read all records from a binary file “Emp.dat” whose salary is
greater than 70000.
3. Read_RecName() function to display all records whose name starts with ‘S’.
4. ReadRecId() function to display all records whose Id is ‘101’ or ‘105’.
Q2 A table Student is created in the database School. The details of the table are given below.
`
The partial code is given for displaying one record from the customer table created . The
customer table is given as following:
i. Write the parameters and values required to fill statement 1. The parameters
values are as follows:
Database Server User Pasword Database
ii. Write function name to create cursor and fill in the gap for statement 2.
iii. Write a query to fill statement 3 to display all records from customer table.
iv. Write function to fill statement 4 to fetch one record from customer table.