Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Posts Containing a Tag

Return the ids of posts whose tag list contains exactly the tag 'sql' (not a substring such as 'nosql'). Order by id.

Table schema

Posts(post_id INT PRIMARY KEY, tags VARCHAR(30))

Sample data

post_id | tags
1 | sql,db
2 | nosql
3 | ds,algo,sql
4 | api

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.