J'ai vice city en version boîte avec un n0-cd comme ça je suis tranquille ![]()
Et bien sûr, avec le mod Back To The Future, raison pour laquelle j'ai acheté le jeu
Sinon Dracu' achète tout sauf L4D2 ![]()
Bon, la plupart d'entre vous n'en auront très certainement rien à foutre, mais voilà le type de requêtes SQL que je me tape depuis quelque temps, je viens de la pondre
--------------------------------------------
SELECT surv.ns_surv_id,
ecran_data.te_libelle_e te_libelle_e,
ecran_data.nb_groupe_pos,
td.no_type_data_id,
ecran_data.te_libelle_ed,
td.co_type_data,
sv.no_valeur,
sv.te_valeur,
sv.dt_valeur
FROM sumi.surveillant_val sv
JOIN sumi.surveillant surv
ON surv.ns_surv_id = sv.ns_surv_id
JOIN (SELECT typed.no_type_data_id,
typed.co_type_data
FROM sumi.type_data typed
JOIN ( SELECT tdata.no_type_data_id, max(tdata.dt_debut) dt_debut
FROM sumi.type_data tdata
GROUP BY tdata.no_type_data_id
) td_max
ON typed.no_type_data_id = td_max.no_type_data_id
AND typed.dt_debut = td_max.dt_debut
) td
ON td.no_type_data_id = sv.no_type_data_id
JOIN (SELECT svm.ns_surv_id,
svm.no_type_data_id,
MAX(svm.dt_debut) dt_debut
FROM sumi.surveillant_val svm
GROUP BY ns_surv_id, svm.no_type_data_id
) sv_max
ON sv.ns_surv_id = sv_max.ns_surv_id
AND sv.no_type_data_id = sv_max.no_type_data_id
AND sv.dt_debut = sv_max.dt_debut
-- Récupération des informations écran
JOIN ( SELECT ecran.no_ecran_id,
ecran.te_libelle te_libelle_e,
ed.nb_groupe_pos,
ed.no_type_data_id,
ed.te_libelle te_libelle_ed
FROM sumi.ecran_data ed
JOIN ( SELECT ec.no_ecran_id,
ec.te_libelle
FROM sumi.ecran ec
JOIN (SELECT no_ecran_id, MAX(dt_debut) dt_debut
FROM sumi.ecran
WHERE no_ecran_id = 1
GROUP BY no_ecran_id) ec_max
ON ec.no_ecran_id = ec_max.no_ecran_id
AND ec.dt_debut = ec_max.dt_debut
)ecran
ON ed.no_ecran_id = ecran.no_ecran_id
) ecran_data
ON td.no_type_data_id = ecran_data.no_type_data_id
-- Récupération des surveillants de l'établissement sélectionné.
WHERE surv.ns_surv_id
IN ( SELECT surv_val.ns_surv_id
FROM sumi.surveillant_val surv_val
WHERE surv_val.no_type_data_id = 3008
AND surv_val.no_valeur = 723 -- Numéro FASE de l'établissement ICI.
)
ORDER BY surv.ns_surv_id, ecran_data.nb_groupe_pos;
SELECT surv.ns_surv_id,
ecran_data.te_libelle_e te_libelle_e,
ecran_data.nb_groupe_pos,
td.no_type_data_id,
ecran_data.te_libelle_ed,
td.co_type_data,
sv.no_valeur,
sv.te_valeur,
sv.dt_valeur
FROM sumi.surveillant_val sv
JOIN sumi.surveillant surv
ON surv.ns_surv_id = sv.ns_surv_id
JOIN (SELECT typed.no_type_data_id,
typed.co_type_data
FROM sumi.type_data typed
JOIN ( SELECT tdata.no_type_data_id, max
(tdata.dt_debut) dt_debut
FROM sumi.type_data tdata
GROUP BY tdata.no_type_data_id
) td_max
ON typed.no_type_data_id = td_max.no_
type_data_id
AND typed.dt_debut = td_max.dt_
debut
) td
ON td.no_type_data_id = sv.no_type_data_id
JOIN (SELECT svm.ns_surv_id,
svm.no_type_data_id,
MAX(svm.dt_debut) dt_debut
FROM sumi.surveillant_val svm
GROUP BY ns_surv_id, svm.no_type_data_id
) sv_max
ON sv.ns_surv_id = sv_max.ns_surv_id
AND sv.no_type_data_id = sv_max.no_type_dat
a_id
AND sv.dt_debut = sv_max.dt_debut
-- Récupération des informations écran
JOIN ( SELECT ecran.no_ecran_id,
ecran.te_libelle te_libelle_e,
ed.nb_groupe_pos,
ed.no_type_data_id,
ed.te_libelle te_libelle_ed
FROM sumi.ecran_data ed
JOIN ( SELECT ec.no_ecran_id,
ec.te_libelle
FROM sumi.ecran ec
JOIN (SELECT no_ecran_id, MAX(dt_d
ebut) dt_debut
FROM sumi.ecran
WHERE no_ecran_id = 1
GROUP BY no_ecran_id) ec_max
ON ec.no_ecran_id = ec_max.no_ecr
an_id
AND ec.dt_debut = ec_max.dt_debut
)ecran
ON ed.no_ecran_id = ecran.no_ecran_id
) ecran_data
ON td.no_type_data_id = ecran_data.no_type_data_i
d
-- Récupération des surveillants de l'établissemen
t sélectionné.
WHERE surv.ns_surv_id
IN ( SELECT surv_val.ns_surv_id
FROM sumi.surveillant_val surv_val
WHERE surv_val.no_type_data_id = 3008
AND surv_val.no_valeur = 723 -- Numéro FA
SE de l'établissement ICI.
)
ORDER BY surv.ns_surv_id, ecran_data.nb_groupe_pos
;
SELECT surv.ns_surv_id,
ecran_data.te_libelle_e te_libelle_e,
ecran_data.nb_groupe_pos,
td.no_type_data_id,
ecran_data.te_libelle_ed,
td.co_type_data,
sv.no_valeur,
sv.te_valeur,
sv.dt_valeur
FROM sumi.surveillant_val sv
JOIN sumi.surveillant surv
ON surv.ns_surv_id = sv.ns_surv_id
JOIN (SELECT typed.no_type_data_id,
typed.co_type_data
FROM sumi.type_data typed
JOIN ( SELECT tdata.no_type_data_id, max
(tdata.dt_debut) dt_debut
FROM sumi.type_data tdata
GROUP BY tdata.no_type_data_id
) td_max
ON typed.no_type_data_id = td_max.no_
type_data_id
AND typed.dt_debut = td_max.dt_
debut
) td
ON td.no_type_data_id = sv.no_type_data_id
JOIN (SELECT svm.ns_surv_id,
svm.no_type_data_id,
MAX(svm.dt_debut) dt_debut
FROM sumi.surveillant_val svm
GROUP BY ns_surv_id, svm.no_type_data_id
) sv_max
ON sv.ns_surv_id = sv_max.ns_surv_id
AND sv.no_type_data_id = sv_max.no_type_dat
a_id
AND sv.dt_debut = sv_max.dt_debut
-- Récupération des informations écran
JOIN ( SELECT ecran.no_ecran_id,
ecran.te_libelle te_libelle_e,
ed.nb_groupe_pos,
ed.no_type_data_id,
ed.te_libelle te_libelle_ed
FROM sumi.ecran_data ed
JOIN ( SELECT ec.no_ecran_id,
ec.te_libelle
FROM sumi.ecran ec
JOIN (SELECT no_ecran_id, MAX(dt_d
ebut) dt_debut
FROM sumi.ecran
WHERE no_ecran_id = 1
GROUP BY no_ecran_id) ec_max
ON ec.no_ecran_id = ec_max.no_ecr
an_id
AND ec.dt_debut = ec_max.dt_debut
)ecran
ON ed.no_ecran_id = ecran.no_ecran_id
) ecran_data
ON td.no_type_data_id = ecran_data.no_type_data_i
d
-- Récupération des surveillants de l'établissemen
t sélectionné.
WHERE surv.ns_surv_id
IN ( SELECT surv_val.ns_surv_id
FROM sumi.surveillant_val surv_val
WHERE surv_val.no_type_data_id = 3008
AND surv_val.no_valeur = 723 -- Numéro FA
SE de l'établissement ICI.
)
ORDER BY surv.ns_surv_id, ecran_data.nb_groupe_pos
;
-------------------------------------------------
Désolé pour le flood, les modo n'ont qu'à effacer au pire.
Voilà ![]()
T'as fait comment pour afficher tout les espaces? ![]()
Tu connais autre chose de plus partique d'ailleurs ? ![]()
J'ai essayé avec le remplacement de l'espace par ALT+255, mais ca reste indigeste.... ![]()
Bon, la plupart d'entre vous n'en auront très certainement rien à foutre, mais voilà le dossier " missions " du .vpk de ma map de L4D que je me tape depuis quelque temps, je viens de le pondre
"mission"
{
// Use a short name, since it is used as a tag on the servers for matching
// your campaign when looking for a dedicated server. Generally it should
// be something unique. One suggestion to is use your initials and a short
// abbreviated name for your campaign. Avoid spaces and special characters.
// Do not change the name when you create a revision, as the matchmaking
// system will consider it a different campaign. Instead, use "Version" and
// "DisplayTitle" below to indicate revisions.
"Name" "GuerreDesConsoles"
// The version number is used when finding campaigns on dedicated servers
// and in matchmaking. If you try to connect to someone in matchmaking
// who has a newer version, you will be directed to download the new
// version. You must increment this to the next integer (whole numbers)every
// time you release an update. (I.E. 1, 2, 3, 4, etc.)
"Version" "3"
// Author is displayed in the UI when people see others playing your
// campaign.
"Author" "Vortex646"
// Website is extremely important as people will automatically be sent
// to this URL if they try to join a friend running your campaign. This
// should be the home page for your campaign and it should provide a
// description, a link to download it, and installation instructions.
"Website" "http://media.steampowered.com/apps/513
/deadline.html"
// This name is used when referring to the campaign in the UI.
"DisplayTitle" "GuerreDesConsoles"
"Description" "Echappez vous de l'enfer GDC."
// Vmt shown behind the end credits when your campaign completes.
// Note: This item needs to have "vgui\" at the front. It is assumed
// for the poster and the map thumbnails.
"OuttroImage" "vgui\OutroTitle_Deadline"
// Loading poster data
//
// Note that "posterTitle" and "posterTagline" are often blank as
// the poster usually includes these in the poster image itself.
// If you do not provide a poster, a generic default will be used.
"poster"
{
"posterImage" "LoadingScreen_DeadLine"
"posterTitle" ""
"posterTitle_y" "360"
"posterTagline" ""
"posterTagline_y" "372"
// Adjust these to align the survivor names on your poster.
// 0,0 is center of the poster.
// Adjusting x value moves the names horizontally.
// Adjusting y value moves the names vertically.
// Try to space them in a staggered arrangement so that long names do not overlap.
"bill_player_name_x" "118"
"bill_player_name_y" "-195"
"louis_player_name_x" "-53"
"louis_player_name_y" "-205"
"zoey_player_name_x" "-124"
"zoey_player_name_y" "-210"
"francis_player_name_x" "31"
"francis_player_name_y" "-200"
}
// The modes section lists each of your campaign maps and each mode
// they support. Depending on how you set up your campaign maps,
// you can reuse the same bsp for different modes as is the case with
// coop and versus in this example. This requires setting up entities
// that show up or operate differently for different modes.
//
// The following modes are supported: "coop", "versus", "survival"
//
// Number each map section starting with "1"
//
// "Map" is the name of the bsp of the starting map. (do not include
// an extension)
// "DisplayName" is the name to use for the chapter of the map.
// "Image" is the image used for the chapter in the lobby and
// settings.
"modes"
{
"coop"
{
"1"
{
"Map" "autreOther"
"DisplayName" "Deadline 1"
"Image" "maps/l4d_deadline"
}
"2"
{
"Map" "l4d_deadline02"
"DisplayName" "Deadline 2"
"Image" "maps/l4d_deadline"
}
}
"versus"
{
"1"
{
"Map" "l4d_deadline02_vs"
"DisplayName" "Deadline Versus"
"Image" "maps/l4d_deadline"
}
}
"survival"
{
"1"
{
"Map" "l4d_deadline02"
"DisplayName" "Dead Line Survival"
"Image" "maps/l4d_deadline"
}
}
}
}
J'ai laissé les indications pour pouvoir le faire, c'est beau hein au pire les modos n'ont qu'à effacer.
Voilà ![]()
http://pastebin.com/4QymFcXp
Merci beaucoup, je connaissais pas, c'est assez sympa comme truc ![]()
Et ta ligne SQL, elle sert à quoi ?
@Vortsex: Paye tes commentaires
Cette requête sert à récupérer toutes les dernières informations des surveillants d'une école, ainsi que leur représentation sur l'écran final (libellé des colonnes, emplacements, etc).
Mouais, et tu gagnes combien en faisant ça ? ![]()
0 €
Depuis le 8 février
Jusqu'au 20 mai
Ptain ![]()
J'avoue....
Saleté de stage ![]()
Nan ca va, j'ai encore 4 ans d'étude à faire.
4 ans encore ptain ![]()
![]()
OMG, tu me donnes envie là ![]()
C'était obliger que j'allais rater une promo , heureusement que c'était Manhunt ![]()
Nan mais c'est dracu, tu peux pas test ![]()
Ben moi je peux regarder jusqu'à 5h du matin de toute façon c'est toute les 2 heures
Par contre après faut des gars qui se lève tôt ![]()
Chopé à 7,5 € à noel, avec Nico et Kick je crois.
Jiraiya-08
Posté le 27 avril 2010 à 14:47:55
Chopé à 7,5 € à noel, avec Nico et Kick je crois.
Et smash
Et pseudo aussi.
![]()