0% found this document useful (0 votes)
9 views2 pages

Views Commands

The document outlines the creation of two database tables: 'events' and 'participants'. It includes the insertion of various event details and participant information, including their payment status for the events. The document also contains SQL commands to select and display the data from both tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Views Commands

The document outlines the creation of two database tables: 'events' and 'participants'. It includes the insertion of various event details and participant information, including their payment status for the events. The document also contains SQL commands to select and display the data from both tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

create database views;

use views;

create table events(event_id int,event_name varchar(20),fees


int,venue varchar(20),no_of_participants int);

insert into events values(1, 'solo singing', 100, 'auditorium', 25);


insert into events values(2, 'duet singing', 200, 'auditorium', 15);
insert into events values(3, 'solo dance', 150, 'center stage',30);
insert into events values(4,'duet dance', 300,'center stage',10) ;
insert into events values(5,'group dance',500, 'center stage',7);
insert into events values(6, 'fashion show',600,'ramp', 10);
insert into events values(7,'reels', 100,'ramp', 40);

select * from events;

create table participants(participant_name varchar(10), even_name


varchar(20), fees_paid_or_not_paid varchar(20));

insert into participants values('Abhishek', 'solo singing','not paid');


insert into participants values('Simran','solo dance', 'paid');
insert into participants values('Harsh','reels', 'paid');
insert into participants values('Pranali', 'fashion show','paid');
insert into participants values('Sanika', 'duet dance', 'not paid');
insert into participants values('Sanskriti','solo singing','paid');
insert into participants values('Tanuja', 'solo dance', 'not paid');
insert into participants values('Vedant', 'solo singing','paid');

select * from participants;

You might also like