Question
Explain the data base design for Model-I for producing the receipts the series of SQL statements for producing the payment side of cash book for Model-II.

Answer

The following series of SQL Statement retrieve a record set of producing the payments side of the Cash Book for Model II.
  1. SELECT Narration, Acc-code As Code Amount
FROM vouchers As v, Details As D

WHERE tType = 1 AND V.VNO = D.VNO

AND Acc-code like “141*”.
  1. SELECT Narration, Code, Amount
FROM vouchers As v, Details As D

WHERE tType = 0 AND V.VNO = D.VNO

AND Code Like “141*”.
  1. SELECT Narration, Acc-code As Code Amount
FROM vouchers As v, Details As D

WHERE tType = 1 AND V.VNO = D.VNo

AND Acc-code Like “141*”.

UNION

SELECT Narration, Code, Amount

FROM vouchers As v, Details As D

WHERE tType = 0 AND V. VNO = D.VNo

AND Acc-code like “141*”.

This SQL statement is source as Query D1
  1. SELECT Code, Sum (Amount) As Total
FROM Query D1

GROUP BY Code

This SQL statement is saved as Query D2.
  1. SELECT a.Code b.Name As [Name of Account],
IIF (a.total > 0, a total Null) As Amount

FROM Query D2 As a, Account As b

WHERE a code = b code

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

Explain the following along with their advantages:
  1. Ready to use accounting software.
  2. Customised accounting software.
  3. Tailored accounting software.
Rectify the following errors:
  1. Purchases Book is overcast by ₹ 500.
  2. Salary paid to an employee, Mr. Ajay, is debited to his Personal account ₹ 3,000.
  3. Goods sold to Shashi on credit ₹ 300 have been wrongly passed through the Purchases Book.
  4. Total of Returns Inward Book has been added ₹ 9 short.
  5. Purchase of chair from Happy Traders for ₹ 35 has been entered in the Purchases Book as ₹ 53.
From the following particulars, ascertain the bank balance as per Pass Book as on 31st March, 2019 (a) without correcting the Cash Book balance and (b) after correcting the Cash Book balance:
  1. The bank balance as per Cash Book on 31st March, 2019 ₹ 40,000.
  2. Cheques issued but not encashed up to 31st March, 2019 amounted to ₹ 10,000.
  3. Cheques paid into the bank, but not cleared up to 31st March, 2019 amounted to ₹ 15,000.
  4. Interest on investments collected by the bank but not entered in the Cash Book ₹ 500.
  5. Cheques deposited in the bank but not entered in the Cash Book ₹ 12,500.
  6. Bank charges debited in the Pass Book but not entered in the Cash Book ₹ 100.
Siya maintains her books of account from Incomplete Records. Her books provide the following information:
Particulars1^(st ") April
2022 (₹)
31^(st ") March2023 (₹)
Cash1,2004,000
Debtors16,80027,200
Stock22,40024,400
Investments________8,000
Furniture7,5008,000
Creditors14,90011,600

She withdraws ₹ 500 per month for personal expenses. She sold her Investments ₹ 16,000 at $5 \%$ premium and introduced the amount into a business.
You are required to prepare a Statement of Profit or Loss for the year ending $31^{\text {st }}$ March 2023.
Give journal entries to rectify the following errors assuming that suspense account had been opened.
  1. Goods distributed as free sample ₹ 5,000 were not recorded in the books.
  2. Goods withdrawn for personal use by the proprietor ₹ 2,000 were not recorded in the books.
  3. Bill receivable received from a debtor ₹ 6,000 was not posted to his account.
  4. Total of Returns inwards book ₹ 1,200 was posted to Returns outwards account.
  5. Discount allowed to Reema ₹ 700 on receiving cash from her was recorded in the books as ₹ 70.
Hari maintains his books of account on Single Entry System. His books provide the following information:
His drawings during the year were ₹ 5,000 Depreciate furniture by 10% and provide a reserve for Bad and Doubtful Debts at 10% on Sundry Debtors. Prepare the statement showing the profits for the year.
What is the use of Data Base Management?
Briefly state the purpose of functions in SQL environment.
M/s Saniya Sports Equipment does not keep proper records. From the following information find out profit or loss and also prepare balance sheet for the year ended March 31, 2017:

Drawing 10,000 p.m. for personal use, fresh capital introduce during the year 2,00,000. A bad debts of 2,000 and a provision of 5% is to be made on debtors. outstanding salary 2,400, prepaid insurance 700, depreciation charged on furniture and machine @ 10% p.a.
Following balances are taken from the books of Niranjan. Prepare Trading and Profit and Loss Account and Balance Sheet for the year ended 31st March, 2019:
(iamge)
Adjustments:
  1. Closing Stock ₹ 7,50,000.
  2. Depreciate Machinery by 10% and Furniture by 20%.
  3. Wages ₹ 50,000 and salaries ₹ 20,000 are outstanding.
  4. Write off ₹ 50,000 as further Bad Debts and create 5% Provision for Doubtful Debts. Also, create a reserve for discount on Debtors @ 2%.
  5. Investments were made on 1st July, 2018 and no interest has been received so far.