SQL Introduction
SQL Introduction
SQL Introduction
Structured Query
Language
SQL Introduction
• Standard language for querying and
manipulating data
• Data Definition Language (DDL)
– Create/alter/delete tables and their attributes
• Data Manipulation Language (DML)
– Query one or more tables – discussed next !
– Insert/delete/modify tuples in tables
Table name Attribute names
Tables in SQL
Product.
Tuples or rows
Tables
• The schema of a table is the table name and
its attributes:
Product(PName, Price, Category, Manfacturer)
Label(main_window,text="What is your
name").grid(row=1,column=0)
main_window.mainloop()
Creating GUI
#input text
my_id=Entry(main_window,width=50,borderwidth=5).grid(row=
0,column=1)
my_name=Entry(main_window,width=50,borderwidth=5).grid(r
ow=1,column=1)
def on_click():
print("my name is:",my_name,"\nmy id is:",my_id)
#button
Button(main_window,text="clickme",command=on_click).grid(r
ow=2,column=1)
Creating GUI
#input text
Entry(main_window,width=50,borderwidth=5).grid(row=0,colu
mn=1)
Entry(main_window,width=50,borderwidth=5).grid(row=1,colu
mn=1)
#button
Button(main_window,text="clickme").grid(row=2,column=1)
Creating GUI
• Output