You are on page 1of 6

c 


  

 Course Title

Report:Particular
Month Date

Location
Row *

Start Time

End Time

Current Booking

Explanation:For the report of course details for a particular month,their are multiple rows with details
course title,date,location,start time,end time,current booking.


  

 Course Title
Report:Client,Previ
ous Month
No.Of Places
Booked
Row*
Cost per place*

Total Cost

Explanation:For the report on client details for a particular month,their are multiple rows with details
course title,no: of places booked,cost for each place,total cost.
v
  

Program



Data Base Course Details O/p in report


Explanation:Read course details from database and output in report.


  

Program



Data Base Course Details Calculate O/p in report


Explanation:Read course details from database,for a particular client,do necessary calculation and
output in report.


 

  

Program



Get Current Database Store the result Output the
Month of query into details as a

some variable report

Prepare SQL Query Database


statement
Condition:current
month

Explanation:

First current month has to be found out.Then from the database , we need to query the relevant records
for current month.These records need to be displayed as a report .

ß
 

  

Program



Get Previous Database Store the result Output the
Month of query into details as a

some variable report

Prepare SQL Query Database


statement

Condition:previous Groupby(course Count(*) on Sum(cost)


month ,client title) location for a
particular course
title

Explanation:

Get the previous month.Query the database using groupby(course title), get count(*) of each group and
get total cost for each course title.Display the result for the previous month of the particular client as a
report.

c 

  



Start


Get current month

Prepare SQL statement


with condition as current
month
Query DB

O/p query result



into report

End


  



Start


Get previous month

Prepare SQL statement with condition


as previous month,client, using groupby
clause on course title,count(*) based on
 course title,sum(cost)

Query DB


O/p query result
 into report


End

c v


   
begin

do compute current month

do prepare sql statement to query course details with condition ͚current month͛.

do query database

do print query result into a report

end


   
begin

do compute previous month

do prepare sql statement to query course details with condition ͚previous month͛ and ͚client͛

do append sql statement with groupby clause on ͚course title͛

do append sql statement with count(*).

do append sql statement to compute sum(cost)

do query database

do print query result into a report

end


begin

do print ͞Main Menu͟

͞1.Courses Available͟

͞2.Schedule a course͟.

͞3.Report:Scheduled Courses͟

͞4.Report:Course History͟

͞5.Report:Client Companies͟
͞6.Report:Candidates͟

͞7.Exit͟

do print ͞Enter your choice(1-7)͟

do switch(choice)

case 1 : call proc listCourses()

case 2:call proc scheduleCourse()

case 3:call proc reportCourses()

case 4:call proc reportCourseHistory()

case 5:call proc reportClient()

case 6:call proc reportCandidates()

case 7:call proc exit()

end

c 

 

You might also like