Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Need Help about PGadmin4 for SQL

mage1968

Apprentice
Mar 16, 2021
27
0
16
192.168.1.1
♂️
Hello ka-netizion, bka meron ditong master sa SQL using pgadmin4(postgreSQL)

pahelp sana ako if tama ba itong syntax sa pgadmin4 query, ng.aaral ksi ako ng SQL at ito assignment namin 😅

1st query picture ->1666823573279.png
heto yung syntax nya ->

SELECT * FROM film
WHERE title LIKE 'S%' OR title LIKE 'T%' AND replacement_cost BETWEEN 15.99 AND 20.99

yung sa baba "Data Output" section yan yung results nya.


2nd query picture -> 1666823674543.png
syntax query ->

SELECT title,length FROM film
WHERE title LIKE 'T%' OR title LIKE 'S%' AND replacement_cost BETWEEN 15.99 AND 20.99
ORDER by length DESC
LIMIT 20

yung sa baba "Data Output" section yan yung results nya.
---------------------------------------------------------------------------------------------------------------
heto yung questions sa assignment namin
1666823845776.png

i highly appreciated kung sinu man makakapagshare ng correct answers sa syntax query ko.
ng.post na ako nito sa mga fb groups na programming kso nabash lng ako ng kapwa pinoy 😅 imbes tulong lng sana gusto ko makuha sa kasagutan ko sa SQL query.

Thank you Admin!
 
SELECT title
,length
FROM film
WHERE (title LIKE 'T%' OR title LIKE 'S%')
AND (replacement_cost BETWEEN 15.99 AND 20.99)
AND RATING IN ('PG','PG-13','G')
ORDER by title ASC
 
SELECT title
,length
FROM film
WHERE (title LIKE 'T%' OR title LIKE 'S%')
AND (replacement_cost BETWEEN 15.99 AND 20.99)
AND RATING IN ('PG','PG-13','G')
ORDER by title ASC
1st.1666877802677.png____________2nd.1666878789109.png.


inedit ko muna itong 1st script, heto query result master, ayaw lumabas ng table ni ''replacement_cost" hehe😅

pero dito sa SELECT * FROM film, makikita lahat ng table
1666878889025.png
 
Last edited:
SELECT title
,length
,replacement_cost
FROM film
WHERE (title LIKE 'T%' OR title LIKE 'S%')
AND (replacement_cost BETWEEN 15.99 AND 20.99)
AND RATING IN ('PG','PG-13','G')
ORDER by title ASC
 
Sige check koto mamaya on duty pa ako
master, tama ba itong explanation query ko sa ganitong question?
1667199055092.png



sa question A. may sagot na ako na query.


sa question B. ito results ng query ko , gumamit ako ng inner,union pero ayaw lumabas ni film table? ang results is customer_id at film lang ang results?

thank you sa response...
1667199114087.png
 
Back
Top