473,385 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Need Help!!!!!!!!! Using case statement.

please help me to solve the query.

(Using Case statements)

Write PL/SQL code such that: the user will input a letter (A, B, C); the letter will
refer to a case statement that will ask for further information and will give output
accordingly. Note you might use If statements embedded in the Case statements.

Choice Input Output
A Ask for date of birth Your age is ( number indicating (age of person years)

Choice Input Output
B Ask for favorite Chicago Baseball Team If person chooses the outstanding, world famous Chicago White Sox, output to read “Go Sox, and Sweep the Tigers next year”
If person chooses the Cubs, output to read “Maybe next year in the Friendly Confines”

Choice Input Output
C Ask for favorite college If person chooses Oakton college, output to read “Oakton is great!”, otherwise “You need to apply to Oakton!”



thank you
Deven Oza
Dec 9 '06 #1
0 1301

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: siatki | last post by:
hello, At the beginning I would like to describe my very simple table. It is composed of three columns: 'name', 'forename', 'status'. This database stores results of games. The values of column...
12
by: rAinDeEr | last post by:
Hi, I have a table with 2 columns ** CREATE TABLE test (emp_num DECIMAL(7) NOT NULL,emp_name CHAR(10) NOT NULL) and i have inserted a number of records. ** Now, I want to insert a new...
1
by: 50gumbys | last post by:
I need to check a cell (eg A1) in Excel for: - the day of the month (date is entered as dd/mm/yy) - if the day is between 1 - 31, I want to go to the relevant cell (eg - B1 - B31) in order to enter...
1
by: ve01201 | last post by:
I am facing a peculiar problem when I use a case statement and a filter condition on the same column. The sql structure I use is as follows select case col1 when '1' then 'A' when '2' then...
1
by: bitong | last post by:
Here's the problem.. Write a program that will add up all the 10 consecutive integers using for statement. Example: 1+2+3+4+5+6+7+8+9+10=55.. output program will be: sum=55. can't figure it...
3
by: rneel | last post by:
i have the following structure table a1 NO DEPT --------- ---------- 1 2 1 3 1 4 1 table a2 has the following...
2
by: elpeak | last post by:
I have a stored proc that contains 10 other stored procs. When i pass in the variable i want it to find the stored proc that matches and execute. I am having issues w/ the case statement and am...
2
by: pintu | last post by:
Hi Friends, I want to use "in" clause in case statement as shown below. e.g select * from employee where empid in case i_desgn when 'HR' then (1,2,3,4,5) when 'MD' then 1 else 7 end
0
by: asifu9 | last post by:
Hello all, I am new to MS Access VBA 2007, i need help on how to open a chart form in switchboard. SwitchBoard having options to open a form in Add mode and edit mode, in both of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.