Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,165,414 members, 7,861,164 topics. Date: Saturday, 15 June 2024 at 05:06 AM

Dotzok's Posts

Nairaland Forum / Dotzok's Profile / Dotzok's Posts

(1) (2) (3) (of 3 pages)

Programming / Re: SQL by dotzok: 12:11am On Nov 22, 2009
Joyblinks never mind some tongue-lashes; take it as fun. I once ran to chat-room to get a help, eventually i met a saucy guy and we ended up arguing and exchanged words, at last i was right.
Enough of story.

No school in this Nigeria would've thought you in-depths of anything. SQL is 1 of the most intersting and very-easy-to-learn development tool. The first set of clauses any good teacher would teach you in SQL are the DMLs (Data Manipulation Language), which are basically INSERT, SELECT, UPDATE, DELETE, then the DDLs (Data Definition Language); CREATE, DROP, ALTER etc.

However, as simple as they sound, they are too powerful to be ignored in ANY non-trivial application.

Meanwhile you can write 90% of your codes in SQL using Stored Procedures. If you're further interested I'll send you simple samples and materials.

Whatever your journey , Keep walking
Programming / Re: Vb 6 by dotzok: 10:20am On Jul 23, 2009
The second solution above is super. I assumed you have connected to ur Db already and already making use of a Recordset,

DIm Sum as double, i as inteher
' This is what the first responder meant
for i = 1 to rs_mee.Recordset.Recordcount
sum = sum + rs_mee.RecordSet.Fields("number") 'ur column to sum
rs_mee.Recordset.Movenext
next i
F5
Programming / Re: Query To Expire Old Records by dotzok: 10:49am On Jul 09, 2009
Launch Ur Access, Create ur table in design mode. create 3 or more columns (e.g. Password, StartDate, ExpiryDate)-Control the rest from your application. Make Ur Access db password-guarded and at the same time make provision for smart programmers like U in case they want to change system date to remain valid,
Programming / Re: Retrieving/selecting A Particular Number Of Random Rows From A Database Table by dotzok: 9:48am On Jul 09, 2009
Ghengis said just my mind. The best way to tackle some issues with programming might not necessarily be the fastest or the easiest. If your table has an identity column (auto or user-defined)- good. Get ur application generate 50 random numbers for you, U can even make it variable and flexible, such that without going into your DB u can dictate the number of rows u want from the front-end. Keep the random numbers in an array/collection, then send these numbers to ur table Use something like, WHERE [id] in array[1, 50]. By this u are sure of getting ur desired result at the same time haviing a very good control over ur prog. Explore ur Language and find out a good way of Randomizing. VB uses RANDOMIZE TIMER declaration with RND().

(1) (2) (3) (of 3 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.