We help IT Professionals succeed at work.
Get Started

how do i simplify the below my sql query

srikotesh
srikotesh asked
on
76 Views
Last Modified: 2015-09-04
Hi Experts,

can some one suggest me alternative or condition in the below query.
i want to convert this query to hibernate hql query.

e.uid like '%SSL%' OR e.title like '%SSL%' OR e.description like '%SSL%' OR e.customkeywords like '%SSL%' OR t.kb_entry_attributes LIKE '%SSL%')

query:
======
select t.id,t.name FROM entry_attributes t  
INNER JOIN entry as e ON (t.kb_id=e.id) AND (e.uid like '%SSL%' OR e.title like '%SSL%' OR e.description like '%SSL%' OR e.customkeywords like '%SSL%' OR t.kb_entry_attributes LIKE '%SSL%')
LEFT OUTER JOIN entry_source es ON (es.kb_id=e.id) AND (es.ticket_id=0)

thanks
Comment
Watch Question
EE Topic Advisor
CERTIFIED EXPERT
Most Valuable Expert 2014
Awarded 2013
Commented:
This problem has been solved!
Unlock 2 Answers and 4 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE