Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
547 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
if i have array of numbers
10, 9.8, 10.1, 9.5, 10.8, 9.7
I would like to arrange this array by nearest to 10.
To compare this array to 10. I am going to subtract array values from 10:
(10-10), (10 - 9.8), (10-10.1), (10-9.5), (10-10.8), (10-9.7)
0, 0.2, -0.1, 0.5, -0.8, 0.3
To compare numbers i have to consider both postives and negatives, so i am going to use absolute values
0, 0.2, 0.1, 0.5, 0.8, 0.3
Now let's arrange these numbers nearest to 10:
0, 0.1, 0.2, 0.3, 0.5, 0.8
Now write down with corresponding numbers:
10, 10.1, 9.8, 9.7, 9.5, 10.8
So to summarize, i arranged numbers by using ABS(MyNumbers - 10)
Hi,
I tried to solve exercise B with the WAR and the DEATH but haven't succeeded207 yet. Can someone can help me and write the correct answer?
This is what I wrote:
select *
from tblEvent
where CategoryID = 5 or CategoryID = 6 and (EventDetails not like ('%war%death%')
Thanks
Nadav
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.