question

b.joseph avatar image
b.joseph asked

How to exclude certain records which repeat in next row with different condition?

Sorry I am not a SQL Query expert.So this question will be very silly. I have a scenario line below ---------- STUDENT ID YEAR SEMESTER AWARD_TYPE AWARD_VALUE 1 2014 SEM1 TERM 1 2014 SEM2 WARN TERM 1 2015 SEM1 TERM 1 2015 SEM2 TERM 2 2014 SEM1 TERM 2 2014 SEM2 TERM 2 2015 SEM1 TERM 2 2015 SEM2 TERM 3 2014 SEM1 TERM 3 2014 SEM1 HONOR HON 3 2014 SEM2 TERM 3 2015 SEM1 TERM 3 2015 SEM2 TERM 3 2015 SEM2 DEAN HON ---------- Now i need to avoid record that have repeated with Term and Hon with same student in same year and semester and need to keep all other records same. Can i use exist with this? Thanks How can i write a sub query for this
sql querysub-queryrecord
1 comment
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

What have you tried thus far?
0 Likes 0 ·

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.