What are you inspecting and what are you trying to accomplish? I can give you a basic run down, but it would help if you gave more info on what you're trying to do. Both sampling plans below have a confidence level of 95%
You can either use one of the standard sampling plans such as ANSI Z1.4 or Squeglia c=0. Most companies are moving towards Squeglia's c=0 sampling plans because it technically gives you the same result of the Z1.4 plans with less samples taken for measurement.
In your example, under Z1.4, under general inspection level 2 and an AQL of 1.0, your sampling code would be P and the number of samples you take would be 800. You could accept up to 14 defects within that 800 and only reject lot once you hit 15 defects. For c=0, you would take 90 samples and reject the lot on the first defect.