Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[HELP] Adding records in sql using c#

Yowwww

The Fanatic
Advanced Member
Messages
426
Reaction score
2
Points
28
Pa-help naman po sa may mga alam kung paano po mag-add ng records with a limited set of numbers based sa column po

Example po:

Mag-aadd ako ng user and ang department po niya ay IT_Dept which has 30 users lang po ang pede dito then pag na-reach niya na ang 30 users, ma-momove siya next department and so on..

Kahit idea lang po sana :pray:

Maraming salamat po. :praise:
 
you can use the COUNT function to determined the current number of IT_Dept users;

ito example on how you could possibly solved your problem

first: try this query , "SELECT count(*) from `users` where `department` = IT_Dept;
second: gawin mong stored procedure o kaya gawa ka ng function to return the result
third: compare the result
like,
if (countNum > 30) {
//insert new users to next department
}

Note lang: flow at idea lang ibinigay ko. sana matapos mo po ang ginagawa niyo
 
Back
Top Bottom