STID3014-A181 / Main-Issues

9 stars 7 forks source link

Week05-1 #7

Closed zhamri closed 5 years ago

zhamri commented 5 years ago

Instructions:

  1. Study the following SQL commands:
  2. Go to Try-SQL Editor.
  3. Choose table Customers.
  4. Then:
    • Replace record No.3 with your information.
    • Display all customers from Malaysia, Mexico and Brazil by descending order.

Submission

  1. All the related SQL commands.
  2. Screenshot the results.
mulyaidil commented 5 years ago

Replace record No.3 with your information. image

Display all customers from Malaysia, Mexico and Brazil by descending order. image

mimiothman commented 5 years ago

UPDATE Customers SET CustomerName = 'Nor Syamimi Bt Othman', ContactName='Mimie', Address = 'Taman Guar Perahu', City='Bukit Mertajam', PostalCode = '14400' , Country = 'Malaysia' WHERE CustomerID=3; image

SELECT * FROM Customers ORDER BY Country = 'Brazil' DESC; image

SELECT * FROM Customers ORDER BY Country = 'Mexico' DESC; image

SELECT * FROM Customers ORDER BY Country = 'Malaysia' DESC; image

roflinasuha commented 5 years ago

UPDATE Customers SET CustomerName='Nurul Rofli Nasuha',ContactName='Rofli', City='Butterworth', Country='Malaysia',Address='Sungai lokan',PostalCode='13800' WHERE CustomerID=3;

image

SELECT * FROM Customers ORDER BY Country='Malaysia' DESC;

image

SELECT * FROM Customers ORDER BY Country='Mexico' DESC; image

SELECT * FROM Customers ORDER BY Country='Brazil' DESC; image

hoong520 commented 5 years ago

TAN WEI HOONG 253701 UPDATE Customers SET CustomerName='TAN WEI HOONG',ContactName='HOONG', Address='KAMPUNG TIONG GEMAS',City='NEGERI SEMBILAN',PostalCode='73400',Country='Malaysia' WHERE CustomerID=3; 1

SELECT * FROM Customers ORDER BY Country='Malaysia' DESC; 2

SELECT * FROM Customers ORDER BY Country='Mexico' DESC; 3

SELECT * FROM Customers ORDER BY Country='Brazil' DESC; 4

zongxu97 commented 5 years ago

1) UPDATE Customers SET CustomerName='LEE ZONG XU',ContactName='LEE SOO MAIN',Address='INAPAN SISWA SME BANK',City='CHANGLOON',PostalCode='16010',Country='MALAYSIA' WHERE CustomerID=3; ppp 2) SELECT FROM Customers ORDER BY Country='MALAYSIA' DESC; lll 3) SELECT FROM Customers ORDER BY Country='Mexico' DESC; mex 4) SELECT * FROM Customers ORDER BY Country='Brazil' DESC; bra

InasIbrahim commented 5 years ago

UPDATE Customers SET CustomerName = 'Inas Nurshazdweeni Ibrahim', ContactName= 'Inas', Address= 'Taman Pulasan', City= 'Jitra', PostalCode= '06000', Country= 'Malaysia' WHERE CustomerID = 3; update

SELECT * FROM Customers ORDER BY Country='Malaysia' DESC; order 1

SELECT * FROM Customers ORDER BY Country='Mexico' DESC; order 2

SELECT * FROM Customers ORDER BY Country='Brazil' DESC; order 3

khorchongseng commented 5 years ago

UPDATE Customers SET Country='Malaysia', PostalCode = '040440' WHERE CustomerID=3; image SELECT FROM Customers ORDER BY Country='Malaysia' DESC; image SELECT FROM Customers ORDER BY Country='Mexico' DESC; image SELECT * FROM Customers ORDER BY Country='Brazil' DESC image

effareenafasya commented 5 years ago

image

UPDATE TABLE CUSTOMER image

Display all customers from Malaysia, Mexico and Brazil by descending order. image

image

image

maziatulnazihah commented 5 years ago

MAZIATUL NAZIHAH BINTI TASLEHAK@ISHAK 254222

1.UPDATE Customers SET CustomerName='Maziatul Nazihah',ContactName='Mai',Address='Segamat', City='Johor',PostalCode='85400',Country='Malaysia' WHERE CustomerID=3;

image

2.SELECT * FROM Customers ORDER BY Country = 'Brazil' DESC

image

3.SELECT * FROM Customers ORDER BY Country = 'Mexico' DESC

image

4.SELECT * FROM Customers ORDER BY Country = 'Malaysia' DESC

image

WanEnNg commented 5 years ago

**253629 Ng Wan En

1. Update** UPDATE Customers SET CustomerName = 'Ng Wan En', ContactName = 'Wan En', Address = '23,Lorong Asas Murni 6, Taman Asas Murni', City = 'Pulau Pinang', PostalCode= 14000, Country= 'Malaysia' WHERE CustomerID = 3;

1

2. Customers from Malaysia SELECT * FROM Customers ORDER BY Country ='Malaysia' DESC;

image

3. Customers from Mexico SELECT * FROM Customers ORDER BY Country ='Mexico' DESC;

3

4. Customers from Brazil SELECT * FROM Customers ORDER BY Country ='Brazil' DESC;

4

anemrashid commented 5 years ago

UPDATE update MALAYSIA mas BRAZIL brazil MEXICO mexico

adillanora97 commented 5 years ago

254318 Noradilla Binti Aidi Amin image SELECT FROM Customers ORDER BY Country = 'Malaysia' DESC image SELECT FROM Customers ORDER BY Country = 'Mexico' DESC image SELECT * FROM Customers ORDER BY Country = 'Brazil' DESC image

ghost commented 5 years ago

1. Replace record No.3 with your information.

UPDATE Customers SET CustomerName = 'Muhammad Nur Aysraf', ContactName = 'Nurasyraf', Address = 'Taman Tengku Maheran', City= 'Kedah.', PostalCode = '06000', Country = 'Malaysia' WHERE CustomerID = 3;

image

image

2. Display all customers from Malaysia, Mexico and Brazil by descending order.

SELECT * FROM Customers WHERE Country IN ('Malaysia', 'Mexico', 'Brazil') ORDER BY Country DESC;

image

Khalidadzul commented 5 years ago

image image

image

image

MengSin0524 commented 5 years ago

UPDATE Customers SET CustomerName = 'Choong Meng Sin', City = 'Ipoh',ContactName = 'Meng Sin', Country = 'Malaysia', Address = 'Taman Lpg Ria 2', PostalCode = '31650' WHERE CustomerID = 3; image SELECT FROM Customers ORDER BY Country = 'Malaysia' DESC; image SELECT FROM Customers ORDER BY Country = 'Mexico' DESC; image SELECT * FROM Customers ORDER BY Country = 'Brazil' DESC; image

ShahrulFikriHamir commented 5 years ago

Name: SHAHRUL FIKRI HAMIR No Matrix: 250812 UPDATE

UPDATE Customers SET CustomerName='Amir Izzat', ContactName='Shahrul Fikri Hamir', Address='No 13 Laluan Mewah Indah 11 Taman Mewah Indah', City='Batu Gajah', PostalCode='31000', Country='Malaysia' WHERE CustomerID='3';

1

SELECT BY ODER MALAYSIA SELECT * FROM Customers ORDER BY Country='Malaysia' DESC;

2

SELECT BY ODER MEXICO SELECT * FROM Customers ORDER BY Country='Mexico' DESC;

3

SELECT BY ODER BRAZIL SELECT * FROM Customers ORDER BY Country='Brazil' DESC;

4

sitirahimah96 commented 5 years ago

update: image

malaysia image

mexico image

brazil image

ainqurratul commented 5 years ago

Replace record No.3 with your information UPDATE Customers SET CustomerName = 'Qurratul', ContactName= 'Ain', Address= 'SME BANK', City= 'Sintok', PostalCode= '06010', Country= 'Malaysia' WHERE CustomerID = 3; image

Display all customers from Malaysia by descending order. SELECT * FROM Customers ORDER BY Country='Malaysia' DESC; image

Display all customers from Mexico by descending order. image

Display all customers from Brazil by descending order. SELECT * FROM Customers ORDER BY Country='Brazil' DESC; image

nurazieta98 commented 5 years ago

UPDATE Customers SET CustomerName='NUR AZIETA', ContactName='AZIETA', Address='Inasis Bank Muamalat', City='Sintok', PostalCode='06010', Country='Malaysia' WHERE CustomerID=3;

image

Malaysia desc image

Mexico desc image

Brazil desc image

NuriPuspitasari commented 5 years ago

UPDATE Customers SET CustomerName = 'Nuri Puspitasari Binti Jafperi', ContactName='Nuri', Address = 'Jln Machang Limbat', City='Kota Bharu, Kelantan', PostalCode = '16150' , Country = 'Malaysia' WHERE CustomerID=3;

image

*SELECT FROM Customers WHERE Country IN ('Malaysia', 'Mexico', 'Brazil') ORDER BY Country DESC;** image

leezhanyi commented 5 years ago

Lee Zhan Yi 254619 UPDATE Customers SET CustomerName = 'Lee Zhan Yi', ContactName= 'ZhanYi',Address='2,Jalan Teratai 59',City='Johor Bahru',PostalCode='81100',Country='Malaysia' WHERE CustomerID = 3;

image

SELECT * FROM Customers ORDER BY Country='Malaysia' DESC;

image

SELECT * FROM Customers ORDER BY Country = 'Brazil' DESC;

image

SELECT * FROM Customers ORDER BY Country = 'Mexico' DESC;

image

chenyaushum commented 5 years ago

TABLE CUSTOMERS

1

REPLACE NO.3 AS MY DETAILS UPDATE Customers SET CustomerName = 'Shum Chen Yau', ContactName = 'Yau', Address = 'A04-18, Jalan Austin Perdana 1', City = 'Johor Bahru', PostalCode = 81100, Country = 'Malaysia' WHERE CustomerID = 3; 2

Display all customers from Malaysia by descending order. 3

Display all customers from Mexico by descending order. 4

Display all customers from Brazil by descending order.

5

shumchenyau254854.docx

ummuauzai commented 5 years ago

UPDATE Customers SET CustomerName='Ummu Auzai',ContactName='Ummu',Address='Sungai Long', City='Selagor',PostalCode='32000',Country='Malaysia' WHERE CustomerID=3; image

ORDER BY SELECT * FROM Customers WHERE Country IN ('Malaysia', 'Mexico', 'Brazil') ORDER BY Country DESC 2

farahnabilah commented 5 years ago

1) Replace record No.3 with your information. UPDATE Customers SET CustomerName='FARAH',ContactName='NABILAH', City='JOHOR', Country='Malaysia',Address='BUKIT GAMBIR',PostalCode='84800' WHERE CustomerID=3; image

2) Display all customers from Malaysia, Mexico and Brazil by descending order.

SELECT * FROM Customers ORDER BY Country = 'Malaysia' DESC; image

SELECT * FROM Customers ORDER BY Country = 'Mexico' DESC; image

SELECT * FROM Customers ORDER BY Country = 'Brazil' DESC; image

syazlinazhar commented 5 years ago

253920 Amiera Syazlin Md Azhar

1. Replace record No.3 with your information.

UPDATE Customers SET CustomerName = 'Amiera Syazlin Md Azhar', ContactName= 'Md Azhar', Address= '685, Jalan Seri Impian 1/3, Bandar Seri Impian', City= 'Kluang', PostalCode= '86000', Country= 'Malaysia' WHERE CustomerID = 3;

screen shot 2018-10-07 at 2 01 28 pm

2. Display all customers from Malaysia, Mexico and Brazil by descending order.

a) Malaysia SELECT * FROM Customers ORDER BY Country= 'Malaysia' DESC;

screen shot 2018-10-07 at 2 08 38 pm

b) Mexico SELECT * FROM Customers ORDER BY Country= 'Mexico' DESC;

screen shot 2018-10-07 at 2 06 47 pm

c) Brazil SELECT * FROM Customers ORDER BY Country= 'Brazil' DESC;

screen shot 2018-10-07 at 2 10 00 pm

lausiewhung commented 5 years ago

Replace record No.3 with your information. UPDATE Customers SET CustomerName='LAU SIEW HUNG',ContactName='YVONNE',Address='13,STREET ONE,SINTOK',City='KEDAH ',PostalCode='06010',Country='MALAYSIA' WHERE CustomerID = 3;

image

Display all customers from Malaysia, Mexico and Brazil by descending order. SELECT * FROM Customers ORDER BY Country ='MALAYSIA' DESC;

image

SELECT * FROM Customers ORDER BY Country ='Mexico' DESC;

image

SELECT * FROM Customers ORDER BY Country ='Brazil' DESC; image

chitramugil commented 5 years ago

TABLE:UPDATE UPDATE Customers SET ContactName='Chitramugil',City='Klang',Country='Malaysia',Address='Taman Ria 4',PostalCode='42200',CustomerName='Chitramugil Raman' WHERE CustomerID = 3; 1

TABLE 2:ORDER BY SELECT * FROM Customers WHERE Country IN ('Malaysia', 'Mexico', 'Brazil') ORDER BY Country DESC capture

syaziana commented 5 years ago

Nurulsyaziana Fata (253819)

  1. Replace record No.3 with your information:

no7

  1. Display all customers from Malaysia, Mexico and Brazil by descending order. SELECT * FROM Customers WHERE Country IN ('Malaysia', 'Mexico', 'Brazil') ORDER BY Country DESC

all

Vjingwen commented 5 years ago

Wang Jing Wen 253676 Replace record No.3 with your information: UPDATE Customers SET CustomerName = 'Wang Jing Wen', ContactName = 'Jing Wen', Address = 'Taman Kinrara', City= 'Selangor', PostalCode ='47100', Country = 'Malaysia' WHERE CustomerID = 3; name Display all customers from Malaysia, Mexico and Brazil by descending order: SELECT * FROM Customers ORDER BY Country DESC; brazil country

amirizzat57 commented 5 years ago

Amir Izzat 250774

  1. Replace record No.3 with your information. UPDATE Customers SET CustomerName = 'Amir Izzat Bin Ahmad Shahabuddin', ContactName = 'Amir Izzat', Address = 'No 3711 Kampung Pak Kancil Dalam', City= 'Terengganu', PostalCode = '22100', Country= 'Malaysia' WHERE CustomerID = 3; image

  2. Display all customers from Malaysia, Mexico and Brazil by descending order. SELECT * FROM Customers ORDER BY Country='Malaysia' DESC;

image

SELECT * FROM Customers ORDER BY Country='Mexico' DESC;

image

SELECT * FROM Customers ORDER BY Country='Brazil' DESC;

image

CojYee commented 5 years ago
  1. Replace record No.3 with your information SET CustomerName='Chng Ooi Jie Yee', ContactName='CojYee', Address='Dpp Proton', City='Penang', PostalCode='10460', Country='Malaysia' WHERE CustomerID=3; image

  2. Display all customers from Malaysia, Mexico and Brazil by descending order SELECT * FROM Customers WHERE Country IN ('Malaysia', 'Mexico', 'Brazil') ORDER BY Country DESC; image

fncscafred commented 5 years ago

UPDATE Customers SET CustomerName = 'Francisca Frederick', ContactName = 'Frederick Frederline', Address = 'Mentari Court', City= 'Selangor', PostalCode ='46150', Country = 'Malaysia' WHERE CustomerID = 3;

image

SELECT * FROM Customers WHERE Country IN ('Malaysia', 'Mexico', 'Brazil') ORDER BY Country DESC;

image

Syaqinahsafar commented 5 years ago

UPDATE

update data

ORDER

order country

maizatul98 commented 5 years ago

UPDATE Customers SET CustomerName= 'Maizatul Fatihah', ContactName= 'Syaqinah Safar', Address= 'Inasis SME Bank, UUM', City= 'Changlun', PostalCode=06010, Country= 'Malaysia' WHERE CustomerID = 3; image

SELECT * FROM Customers WHERE Country IN ('Malaysia','Brazil','Mexico') ORDER BY Country DESC; image

nblhhda commented 5 years ago

UPDATE Customers SET CustomerName = 'Ain Nabilah Huda bt Mat Taib', ContactName='Nabilah', Address = 'Taman Kuala Krau', City='Temerloh', PostalCode = '28050' , Country = 'Malaysia' WHERE CustomerID=3; screenshot 146

screenshot 147

screenshot 148

screenshot 149

screenshot 150

nuruain commented 5 years ago

Siti Nurul 'Ain Bt Mohamad Noor (254143)

  1. Replace record No.3 with your information. SET CustomerName='Siti Nurul Ain',ContactName='Ain',Address='Baling', City='Kedah',PostalCode='09100',Country='Malaysia' WHERE CustomerID=3; image

  2. Display all customers from Malaysia, Mexico and Brazil by descending order. a) Malaysia SELECT * FROM Customers ORDER BY Country= 'Malaysia' DESC; image

b) Mexico SELECT * FROM Customers ORDER BY Country= 'Mexico' DESC; image

c) Brazil SELECT * FROM Customers ORDER BY Country= 'Brazil' DESC; image

muhammadnasyreeq commented 5 years ago

[250795] Muhammad Nasyreeq Bin Nor Azam

UPDATE Customers SET CustomerName = 'Muhammad Nasyreeq Bin Nor Azam', ContactName='Nash', Address = 'Bandar Tasik Kesuma', City='Kajang', PostalCode = '43700' , Country = 'Malaysia' WHERE CustomerID=1; 1 update

SELECT * FROM Customers ORDER BY Country='Malaysia' DESC; 2 order malaysia

SELECT * FROM Customers ORDER BY Country='Mexico' DESC; 2 order mexico

SELECT * FROM Customers ORDER BY Country='Brazil' DESC; 2 order brazil

Quitetve commented 5 years ago

SQL UPDATE STATEMENT NO.3 screenshot 408

SQL DESCENDING ORDER STATEMENT screenshot 409 screenshot 410