Posted by Anonymous on Sat 3rd Mar 01:11
download | new post
- name | suffix
- ------+--------
- abc | 1
- def | 1
- hig | 1
- abc | 2
- xyz | 2
- stu | 2
- SELECT net.name, com.name
- FROM dantest com LEFT OUTER JOIN dantest net ON (com.name = net.name)
- WHERE com.suffix = 1 AND net.suffix = 2;
- result:
- name | name
- ------+------
- abc | abc
- (1 row)
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.