Professional Documents
Culture Documents
DBMS MiniInstagram CE108 CE111 B 2
DBMS MiniInstagram CE108 CE111 B 2
Mini Instagram
The basic features of the applications are to add your photos not just pictures but add a description on
what the photo is about. The photos uploaded are seen by the followers who are the friends of family
members. Followers send a simple request to their dear ones by one click. The pictures are liked by the
followers and if the account is no longer needed it is deactivated by the user.
ER Diagram
Schema
create table users(
user_id varchar(12) not null,
pass varchar(20) not null,
fullname varchar(40) not null,
dp_url varchar(150) null default null,
bio varchar(100) null default null,
primary key (user_id)
);
'https://i.pinimg.com/originals/c1/f7/1c/c1f71c95058915eaa22cc0f82a786696.jpg','I am boy');
'https://th.bing.com/th/id/OIP.m_YMQqQpBI_mWGQHLts56gHaKT?pid=ImgDet&w=208&h=289&c=7&d
pr=1.5','I am nature lover');
'https://www.bing.com/images/search?view=detailV2&ccid=ICyrNxnL&id=3E2541D919062D395B07599
58E23BB7078F99DD1&thid=OIP.ICyrNxnLUOlSt3-fMrM-QQHaEK&mediaurl ','I am superstar');
Complex Queries:-
select photo_id,image_url
from photos natural join photo_of
where user_id in
(select following_id
from following
where user_id = username
);