Is it possible to use sed to handle the line contains BOTH "AA" and "BB"

if yes, can some expert give an example

Lei

With awk
This prints all line that contains "AA" and "BB"

awk '/AA/ && /BB/'
sed '/AA/!d;/BB/!d'