• Aucun résultat trouvé

MS Access Queries

N/A
N/A
Protected

Academic year: 2022

Partager "MS Access Queries"

Copied!
28
0
0

Texte intégral

(1)

MS Access Queries

By

Barry Hynum, Ph.D.

MaxQual Consulting, Inc.

(2)
(3)

TOC

(4)

About designing a query (MDB)

Rename

(5)

Formatting Fields

Rt. Click Column

(6)

Joins

(7)

Joins: Different Tables

(8)

Joins: Different Tables

(9)

Joins: Same Table

(10)

Criteria

(11)

Criteria: Between

(12)

Criteria: Wildcards

(13)

Expressions

(14)

Expressions: Dates & Nulls

(15)

Aggregate Functions

(16)

Aggregates: Criteria

Before After

(17)

Aggregates: Where

Oh, Microsoft!?

(18)

Union Queries

(19)

Subqueries

(20)

Append

(21)

Update

UPDATE Products SET Products.UnitPrice = [UnitPrice]*1.1;

(22)

Make Table

SELECT Customers.* INTO tbl_New FROM Customers;

(23)

Delete

(24)

Parameters

SELECT Products.*, Categories.CategoryName

FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID

WHERE (((Categories.CategoryName)=[Enter Category]) AND ((Products.Discontinued)=No));

Naming Conventions?

(25)

VBA Functions

(26)

Functions

Telephone:

IIf(IsNull([CompanyMainTel]),"",TelephoneDisplay([CompanyMainTel])) Public Function TelephoneDisplay(strIn As String) As String

Select Case Len(strIn & vbNullString) Case 0

TelephoneDisplay = ""

Case 1 To 6, 8, 9

TelephoneDisplay = "Invalid Number"

Case Is = 7

TelephoneDisplay = "Missing Area Code"

Case 10

TelephoneDisplay = "(" & Left(strIn, 3) & ")" _ & " " & Mid(strIn, 4, 3) _

& "-" & Right(strIn, 4) End Select

End Function

(27)

Performance

UltraEdit

(28)

Wrap Up

• Huge Topic!

• Get globally familiar w/ Query Topics

• Make sure u have experience w/ each

– Some understanding of usage – Practice, practice, practice …

• Use samples

• Ask the experts  @AUGSD

Références

Documents relatifs

Backwards, from weak double categories to weak symmetric cubical categories, we have two functors, called 1- skeleton and 1 -coskeleton, that are, respectively, left and

Tensor product of essentially small locally bounded categories exists and is locally

For a finite group G, it may be useful to consider the ^-semilattice Varf(G) c Varfg(G) of finite variations; this is countable because the set of isomorphism types

toward 2 ) ; this complicated some of his papers, in which the study of ad- joint functors is transformed into that of reflections (via the elaborate construction of

L’accès aux archives de la revue « Cahiers de topologie et géométrie différentielle catégoriques » implique l’accord avec les conditions générales d’utilisation

It is well-known that monadic categories coincide with equational categories (A, U ) such that U has a left adjoint ( see Linton [3]) and.. that Beck’s theorem

eresting cases the natural>> order relation between involution categories containing C may be expressed by means of properties of exact squares.. of

definition of an admissible functor between cofibred Picard categories is similar.. to the fibred